package com.agressionmanagement;

import android.os.Bundle;
import android.app.Activity;
import android.graphics.Typeface;
import android.graphics.drawable.AnimationDrawable;
import android.view.Menu;
import android.widget.ImageView;
import android.widget.TextView;

public class MainActivity extends Activity {

	private TextView title;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		
		//what about me wanting to check it this in
		//helloworld
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		title = (TextView) findViewById(R.id.titleTextView);
//		Typeface typeface = Typeface.createFromAsset(getAssets(), "Roboto-Thin.ttf");
//		title.setTypeface(typeface);
		
		ImageView img = (ImageView)findViewById(R.id.imageView1);
		anim = (AnimationDrawable)img.getDrawable();
		 img.post(run);
		
	}
	//what about this
	private AnimationDrawable anim;

	    Runnable run = new Runnable() {
	        @Override
	        public void run() {
	            anim.start();
	        }
	    };

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
